﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

class Circle
{
    public double zhch(double x)
    {
        return 3.14 * x * 2;
    }
    public double mj(double x)
    {
        return 3.14 * x * x;
    }
}
class disiti
{
    static void Main(string[] args)
    {
        Console.WriteLine("输入周长:");
        double r = Convert.ToDouble(Console.ReadLine());
        Circle circle = new Circle();
        Console.WriteLine("周长为"+circle.zhch(r));
        Console.WriteLine("面积为"+circle.mj(r));
    }
}
